﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace class1
{//Robot类应包含机器人姓名name字段、机器人工作的方法Working()，
   abstract class Robot
    {
        protected string name;
        public string Name
        {
            get { return this.name; }
            set { this.name = value; }
        }

        public Robot() { }
        public Robot(string name)
        {
            this.name = name;
        }
        public abstract void Working();
    }
}
